package com.yunhe.abnormal.repository.base;

import com.yunhe.abnormal.domain.base.AlarmRule;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface AlarmRuleRepository extends Neo4jRepository<AlarmRule, Long> {

    @Query(" start f=node({id}) return labels(f)[0]")
    String getLabelName(@Param("id") Long id);
}
